package kr.hyunist.androidcomplete01saeildamil.ch17;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ActChild extends Activity {
	static final String TAG = "ActivityLifeCycle";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Log.d(TAG, "\tchild - onCreate");
		super.onCreate(savedInstanceState);
		LinearLayout linear = new LinearLayout(this);

		TextView tv = new TextView(this);
		tv.setText("자식 액티비티");

		linear.addView(tv);

		setContentView(linear);
	}

	@Override
	protected void onStart() {
		super.onStart();
		Log.d(TAG, "\tchild - onStart");
	}

	@Override
	protected void onResume() {
		super.onResume();
		Log.d(TAG, "	\tchild - onResume");
	}

	@Override
	protected void onPause() {
		super.onPause();
		Log.d(TAG, "	\tchild - onPause");
	}

	@Override
	protected void onRestart() {
		super.onRestart();
		Log.d(TAG, "	\tchild - onRestart");
	}

	@Override
	protected void onStop() {
		super.onStop();
		Log.d(TAG, "	\tchild - onStop");
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		Log.d(TAG, "	\tchild - onDestroy");
	}
}
